package com.ljh.mybatis.controller;

import com.ljh.mybatis.entity.User;
import com.ljh.mybatis.mapper.UserMapper;
import com.ljh.mybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @auth 刘佳浩
 * @create 2020-11-19-9:37
 */
@RestController
public class UserController {
    @Autowired
    private UserService userService;
    //多对多
    @GetMapping("getUserInfo")
    public List<User> getUserInfo(){
        return userService.getUserInfo();
    }
}
